﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5.js"></script>
    <script type="text/javascript" src="lib/respond.min.js"></script>
    <script type="text/javascript" src="lib/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!-- 权限验证 -->
    <script type="text/javascript" src="static/WebApi.js"></script>
    <title>项目跟踪</title>
</head>
<body>
    <!--top 导航-->
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 项目跟踪 <span class="c-gray en">&gt;</span> 公积金记录一览 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>

    <!--Main 估价列表-->
    <div class="page-container">
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l">
                <input type="text" name="" id="number_search" placeholder="请输入报告编号查询" style="width:250px" class="input-text">
                <button name="" id="" class="btn btn-success" type="button" onclick="search()"><i class="Hui-iconfont">&#xe665;</i> 查询</button>
            </span>
            <span class="r">当前数据：<strong id="count">&nbsp;</strong> 条，共<strong id="pagecount"></strong>页</span>
        </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-bg table-hover table-sort">
                <thead>
                    <tr>
                        <th colspan="2" rowspan="2" style="text-align:center">评估报告编号</th>
                        <th colspan="2" rowspan="2" style="text-align:center">借款申请人编号</th>
                        <th colspan="2" rowspan="2" style="text-align:center">借款人联系电话</th>
                        <th colspan="2" style="text-align:center">评估受理</th>
                        <th colspan="2" style="text-align:center">现场勘察</th>
                        <th colspan="2" style="text-align:center">初审意见书</th>
                        <th colspan="2" style="text-align:center">评估通知书</th>
                        <th colspan="2" style="text-align:center">换正式评估报告</th>
                        <th colspan="2" style="text-align:center">特殊事项</th>
                        <th colspan="3" style="text-align:center">预收款</th>
                        <th colspan="4" style="text-align:center">中资入账</th>
                        <th rowspan="2" style="text-align:center">其他</th>
                    </tr>
                    <tr>
                        <!--<th colspan="6"></th>-->
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">日期</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">时间</th>
                        <th style="text-align:center">金额</th>
                        <th style="text-align:center">经办人</th>
                        <th style="text-align:center">时间</th>
                        <th style="text-align:center">金额</th>
                        <th style="text-align:center">现场经办人</th>
                        <th style="text-align:center" colspan="">中资经办人</th>

                    </tr>
                </thead>
                <tbody id="tbody">
                    <!--<tr onclick="Show(20160522)" class="text-c">
            <td colspan="2" style="text-align:center">20160522</td>
            <td colspan="2" style="text-align:center">20142015</td>
            <td colspan="2" style="text-align:center">1391506214</td>
            <td style="text-align:center">2015/4/5</td>
            <td style="text-align:center">李鞍山</td>
            <td style="text-align:center">2016/7/7</td>
            <td style="text-align:center">王华</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">李煜</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">鞍山</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">文乌尔</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">富贵花</td>
            <td style="text-align:center">2016/9/9</td>
            <td style="text-align:center">15K</td>
            <td style="text-align:center">周星驰</td>
            <td style="text-align:center">2016/6/3</td>
            <td style="text-align:center">250k</td>
            <td style="text-align:center">王东风</td>
            <td style="text-align:center">艾玛</td>
            <td style="text-align:center">暂无</td>
        </tr>
        <tr onclick="Show(20160522)" class="text-c">
            <td colspan="2" style="text-align:center">20160523</td>
            <td colspan="2" style="text-align:center">20142016</td>
            <td colspan="2" style="text-align:center">1391506215</td>
            <td style="text-align:center">2015/4/5</td>
            <td style="text-align:center">李四</td>
            <td style="text-align:center">2016/7/7</td>
            <td style="text-align:center">张三</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">王五</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">赵六</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">爱神</td>
            <td style="text-align:center">2016/8/2</td>
            <td style="text-align:center">李刚</td>
            <td style="text-align:center">2016/9/9</td>
            <td style="text-align:center">15K</td>
            <td style="text-align:center">周星驰</td>
            <td style="text-align:center">2016/6/3</td>
            <td style="text-align:center">250k</td>
            <td style="text-align:center">王东风</td>
            <td style="text-align:center">艾玛</td>
            <td style="text-align:center">暂无</td>
        </tr>-->
                </tbody>
                <tfoot id="myfoot">

                </tfoot>
            </table>
        </div>
    </div>
    <!--模态框-->
    <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
    <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
    <!-- <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>-->  <!--分页脚本，暂时注释-->
    <script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
    <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--扩展js脚本-->
    <script type="text/javascript" src="static/Common.js"></script>
    <script type="text/javascript">

        /*项目跟踪-显示*/
        $(function () {
             gettrackRecords("",1,10);
        });

        //查询
        function search()
        {
            var T_ReportNumber = $("#number_search").val();
            gettrackRecords(T_ReportNumber,1,10);
        }

        function gettrackRecords(T_ReportNumber, pageindex,pagesize)
        {
            $.ajax({
                url: ApiUrl + 'api/trackRecord/select',
                type: 'post',
                data: { search: T_ReportNumber, PageIndex: pageindex, PageSize: pagesize },
                success:function(data)
                {
                    $("#tbody").empty();
                    $("#count").text(data.TotalSize);
                    $("#myfoot").empty();
                    $("#pagecount").text(data.PageCount);
                    var html=Array();
                    $(data.Result).each(function ()
                    {
                        var T_Name =Array();
                        var T_Phone =Array();
                        $(this.borrower).each(function()
                        {
                            if (T_Name.join("") != "")
                            {
                                T_Name.push(",");
                            }
                            if (T_Phone.join("") != "") {
                                T_Phone.push(",");
                            }
                            T_Name.push(this.T_Name);
                            T_Phone.push(this.T_Phone);
                        })

                        html.push('<tr onclick="Show(' + this.personal.T_ReportNumber + ')" class="text-c">');
                        html.push('<td colspan="2" style="text-align:center">' + this.personal.T_ReportNumber + '</td>');
                        html.push('<td colspan="2" style="text-align:center">' + T_Name.join("") + '</td>');
                        html.push('<td colspan="2" style="text-align:center">' + T_Phone.join("") + '</td>');
                        html.push('<td style="text-align:center">' + new Date(this.personal.T_Date).Format("yyyy/MM/dd") + '</td>');
                        html.push('<td style="text-align:center">' +this.personal.T_IidName + '</td>');
                        if (this.personal.T_StartDate != null)
                        {
                            html.push('<td style="text-align:center">' + new Date(this.personal.T_StartDate).Format("yyyy/MM/dd") + '</td>');
                        }
                        else
                        {
                            html.push('<td style="text-align:center"></td>');
                        }
                        html.push('<td style="text-align:center">' + this.personal.T_SiteSurveyidName+'</td>');
                        if (this.StartToexamine != null)
                        {
                            html.push('<td style="text-align:center">' +new Date( this.StartToexamine.T_date).Format("yyyy/MM/dd") + '</td>');
                            html.push('<td style="text-align:center">' + this.StartToexamine.T_ToexaminePerson+ '</td>');
                        }
                        else
                        {
                            html.push('<td style="text-align:center"></td>');
                            html.push('<td style="text-align:center"></td>');
                        }
                        //评估通知书
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        if (this.EndToexamine != null)
                        {
                            html.push('<td style="text-align:center">' +new Date( this.EndToexamine.T_date).Format("yyyy/MM/dd") + '</td>');
                            html.push('<td style="text-align:center">' +this.EndToexamine.T_ToexaminePersonName + '</td>');
                        }
                        else
                        {
                            html.push('<td style="text-align:center"></td>');
                            html.push('<td style="text-align:center"></td>');
                        }
                        //特殊事项
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        //预收款
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        //中资入账
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        html.push('<td style="text-align:center"></td>');
                        //其他
                        html.push('<td style="text-align:center">暂无</td>');
                        html.push('</tr>');
                    });
                    $("#tbody").append(html.join(""));


                    var page = Array();
                    page.push('<tr><td style="text-align:right;" colspan="26">');
                    if (pageindex > 1 && data.PageCount > 0) {
                        page.push('<input type="button"  class="btn btn-primary radius" onclick="gettrackRecords(\'' + T_ReportNumber + '\',' + (pageindex - 1) + ',' + pagesize + ')" value="上一页" />');
                    }
                    page.push('<lable  style="font-size:16px" ">第' + pageindex + '页</label>');
                    if (pageindex < data.PageCount && data.PageCount > 0) {
                        page.push('<input type="button"  class="btn btn-primary radius" onclick="gettrackRecords(\'' + T_ReportNumber + '\',' + (pageindex + 1) + ',' + pagesize + ')" value="下一页" />');
                    }

                    page.push('</tr>');
                    var d1 = page.join("");
                    $("#myfoot").append(d1);


                }
            })
        }

        //function Show(obj) {
        //    location.href = "Record.html?" + obj;
        //}
    </script>
</body>
</html>
